home *** CD-ROM | disk | FTP | other *** search
- Path: news.alphatech.com!usenet
- From: Nick Polyak <npolyak@alphatech.com>
- Newsgroups: comp.lang.c++
- Subject: Friend of a base class question
- Date: 10 Jan 1996 20:38:26 GMT
- Organization: ALPHATECH, Inc.
- Message-ID: <4d1842$sht@erebus.alphatech.com>
- NNTP-Posting-Host: erebus.alphatech.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.3 sun4m)
- X-URL: news:comp.lang.c++
-
- Hi
- I have a question.
- I have a class template A inside which I declared another class template I, to
- be a friend to it:
- template <class V>
- class A{
- friend class I<V>
- ..
- };
-
- Then I derive a class I1 from a particular instance of the class template
- I<Vector> and some other class K:
-
- I1 : public I<Vector>, public K{
- ..
- };
- Why the functions of I1 do not have access to the protected members of
- A<Vector>
- Thank you
- Nick
-
-